package com.hp.Model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data @NoArgsConstructor
@AllArgsConstructor
@Builder
public class Category {
    private Long id;
    private String name;
    private Long parentId;             // 自FK，可空
    private Integer level;             // 1/2/3...
    private String path;               // 例如 "1/2/3"
    private Date createdAt;
}
